package com.example.cloud;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 分布式配置中心Client
 *
 * @author tongyufu
 */
@EnableDiscoveryClient
@SpringBootApplication
public class ConfigClientCloudApplication {

    /**
     * 分布式配置中心Client
     *
     * @param args 启动参数
     */
    public static void main(String[] args) {
        new SpringApplicationBuilder(ConfigClientCloudApplication.class).web(WebApplicationType.SERVLET).run(args);
    }

}
